package com.gome.boot.config.tddl;

import org.springframework.context.annotation.Bean;

import javax.sql.DataSource;

/**
 * TDDL版单数据源Mybatis基础配置.
 * <br/>具体应用继承此类实现数据源和Mybatis配置加载.
 *
 * @author baoxiufeng
 */
public abstract class BaseMybatisConfig extends BaseTddlConfig {

    @Bean(initMethod = "init", destroyMethod = "destroy")
    @Override
    public DataSource dataSource() throws Exception {
        return getSingleDataSource();
    }
}
